import { publishToPublication } from "actions/publishToPublication";
import {
getBasePublicationURL,
getPublicationURL,
} from "app/lish/createPub/getPublicationURL";
import { ActionButton } from "components/ActionBar/ActionButton";
import { GoBackSmall } from "components/Icons/GoBackSmall";
import { PublishSmall } from "components/Icons/PublishSmall";
import { useLeafletPublicationData } from "components/PageSWRDataProvider";
import { SpeedyLink } from "components/SpeedyLink";
import { useToaster } from "components/Toast";
import { DotLoader } from "components/utils/DotLoader";
import { useParams, useRouter } from "next/navigation";
import { useState } from "react";
import { useReplicache } from "src/replicache";
import { Json } from "supabase/database.types";
export const BackToPubButton = (props: {
publication: {
identity_did: string;
indexed_at: string;
name: string;
record: Json;
uri: string;
};
}) => {
return (